package com.study;

import java.util.Objects;

/**
 * @author:李雄
 * @ClassName:Person
 * @Description:
 * @createTime:2022-08-18 21:55
 */
public class Person {
    private int age;
    private String name;
    Object obj;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Person person = (Person) o;
        return age == person.age && name.equals(person.name);
    }
}
